
<textarea class="form-control" name="{$kindeditor.name|default='content'}">{$kindeditor.content|default=''}</textarea>
<script src="__STATIC__/zui/lib/kindeditor/kindeditor.min.js"></script>
<script>
    KindEditor.create('textarea[name="{$kindeditor.name|default="content"}"]', {
        basePath: '__STATIC__/zui/lib/kindeditor/',
        uploadJson: '{:url("admin/file/editor")}',
        width: '100%',
        allowImageUpload: true,
        items: [
            'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
            'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
            'insertunorderedlist', '|', 'emoticons', 'image', 'link'
        ]
    });

</script>